package com.hq.dao;

import com.hq.pojo.Problem;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProblemDao {

    /*
    * 增加一条问题
    * */
    public abstract int ins_pro(Problem problem)  throws Exception;

    /*
     *删除一条问题
     * */
    public abstract int del_pro(Integer problemid) throws Exception;

    /*
     *修改一条问题
     * */
    public abstract int upd_pro(Problem problem) throws Exception;

    /*
     *查询一条问题
     * */
    public abstract Problem sel_pro(Problem problem) throws Exception;


    /*
     *根据客户id查询多条问题
     * */
    public abstract List<Problem> cus_list_pro(Integer customerid) throws Exception;

    /*
     *查询所有问题
     * */
    public abstract List<Problem> list_pro() throws Exception;

    /*
    * 查询有多少条问题信息
    * */
    public abstract int sel_quantity_pro() throws  Exception;



}
